package com.example.demo.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.example.demo.entity.Person;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;
@Mapper
public interface PersonMapper extends BaseMapper<Person> {
// mybatis 写法
//    @Select("select * from person")
//    public List<Person> select();
//
//    @Insert("insert into person values (#{id},#{username},#{password},#{birthday})")
//    public int insert(Person person);
}
